package de.schnitzeljaeger.model.dao;

import java.util.List;

public interface IGenericDao<T> {
	
	public long create(T entity);
	
	public <V> void update(Class<V> specificInterface, V entity, long id);
	
	public <V> void update(Class<V> specificInterface, V entity);
	
	public void delete(long id);
	
	public <V> V find(Class<V> specificInterface, long id);
	
	public <V> List<V> list(Class<V> specificInterface);
}
